            
            <?php
            if ($_SESSION['userid'] == 249600 && $lico['debug'] === true) {
				
				echo "<div style=\"width:830px;margin-top:50px;margin-bottom:10px;\"><b><i><u>Ladezeiten</u></i></b><br/>";
				?>
				<span id="loadtime"></span>
				<?php
				echo "</div>";
				echo "<div style=\"width:830px;margin-top:50px;margin-bottom:10px;\"><b><i><u>DEBUG OUTPUT</u></i></b></div>";
				echo "<div style=\"width:830px;margin-top:5px;margin-bottom:60px;height:700px;overflow:auto;\"><pre>";
				  $browser = get_browser(trim($_SERVER['HTTP_USER_AGENT']), true);
				  echo "<b>\$success:</b>\n";
				  echo print_r($success, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$error:</b>\n";
				  echo print_r($error, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$_SERVER['HTTP_USER_AGENT']:</b>\n";
				  echo print_r($_SERVER['HTTP_USER_AGENT'], 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$browser:</b>\n";
				  echo print_r($browser, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$_GET:</b>\n";
				  echo print_r($_GET, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$_POST:</b>\n";
				  echo print_r($_POST, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$_COOKIE:</b>\n";
				  echo print_r($_COOKIE, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$_SESSION:</b>\n";
				  echo print_r($_SESSION, 1)."\n";
				  echo "<b><hr></b>\n\n";
				  echo "<b>\$lico:</b>\n";
				  echo print_r($lico, 1)."\n";
				  echo "<b><hr></b>\n\n";
				echo "</pre></div>";
            }
            ?>
            
            
            
            </div>
          
          
          
          </div>
        </div>
         
		
		
        <div id="social-button">
          <?php if (!in_array(trim($_REQUEST['c']), $restricted)) { ?>
			<div class="fb-like" data-href="http://linuxcounter.net" data-send="true" data-layout="button_count" data-width="400" data-show-faces="false" data-font="arial"></div> &nbsp; &nbsp;
            <a href="https://twitter.com/share" class="twitter-share-button">Tweet</a><script type="text/javascript" src="https://platform.twitter.com/widgets.js"></script> &nbsp; &nbsp;
            <a href="http://www.reddit.com/submit" onclick="window.location = 'http://www.reddit.com/submit?url=' + encodeURIComponent(window.location); return false"> <img src="/gfx/spreddit7.gif" alt="submit to reddit" border="0" /> </a> &nbsp; &nbsp;
			<div class="g-plusone"></div> &nbsp; &nbsp;
			<a href="http://twitter.com/#!/NewLinuxCounter"><img src="/gfx/twitter.png" alt="Follow us on twitter" title="Follow us on twitter" height="20" /></a> &nbsp; &nbsp;
			<a href="http://identi.ca/newlinuxcounter"><img src="/gfx/identica.png" alt="Follow us on identi.ca" title="Follow us on identi.ca" height="20" /></a> &nbsp; &nbsp;
			<a href="http://www.facebook.com/linuxcounter"><img src="/gfx/facebook.png" alt="Follow us on facebook" title="Follow us on facebook" height="20" /></a> &nbsp; &nbsp;
          <?php } ?>
          <a href="<?php echo $lico['baseurl']; ?>/rss.php"><img src="/gfx/rss.png" alt="RSS 2.0" title="RSS 2.0" height="20" /></a><br/>
		  <a href="https://plus.google.com/u/0/b/110560922503990043085/110560922503990043085/posts" rel="publisher">Visit us on Google+</a>
        </div>
		
        <div id="donate-button">
          <form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick" /><input type="hidden" name="hosted_button_id" value="G98ALXYMPM7SU" /><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" /><img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1" /></form> &nbsp; &nbsp;
		  <a href='http://www.pledgie.com/campaigns/18562'><img alt='Click here to lend your support to: Donations for LiCo and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/18562.png?skin_name=chrome' border='0' /></a> &nbsp; &nbsp;
          <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://linuxcounter.net"></a><noscript><a href="http://flattr.com/thing/438541/The-New-Linux-Counter-Project" target="_blank"><img src="https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
        </div>
		
        <div id="seo-button">
		  <a href="http://validator.w3.org/check?uri=referer"><img src="/gfx/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> &nbsp; &nbsp;
		  <a href="http://feed2.w3.org/check.cgi?url=http%3A//linuxcounter.net/rss.php"><img src="/gfx/valid-rss-rogers.png" alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a>
        </div>
		
		
		
        <script type="text/javascript">
          (function() {
            var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
            po.src = 'https://apis.google.com/js/plusone.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
          })();
        </script>
      </div>
    </div>
    
    <div id="page-footer">
      
      			<div id="user-online">
            	<?php
            	if (!isset($_SESSION['num14days'])) {
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(86400*14))."'";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['num14days'] = intval($ret[0]);
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(86400))."'";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['num24hours'] = intval($ret[0]);
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(60*60))."'";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['num60min'] = intval($ret[0]);
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(60*5))."'";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['num5min'] = intval($ret[0]);
                
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(86400*14))."' AND `key`>=1";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['lnum14days'] = intval($ret[0]);
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(86400))."' AND `key`>=1";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['lnum24hours'] = intval($ret[0]);
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(60*60))."' AND `key`>=1";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['lnum60min'] = intval($ret[0]);
                $sel = "SELECT COUNT(*) AS online FROM `online` WHERE `stamp`>='".(time()-(60*5))."' AND `key`>=1";
                $ret = $db->unbuffered_query_first($sel);
                $_SESSION['lnum5min'] = intval($ret[0]);
              }
              
              $num14days = $_SESSION['num14days'];
              $num24hours = $_SESSION['num24hours'];
              $num60min = $_SESSION['num60min'];
              $num5min = $_SESSION['num5min'];
              $lnum14days = $_SESSION['lnum14days'];
              $lnum24hours = $_SESSION['lnum24hours'];
              $lnum60min = $_SESSION['lnum60min'];
              $lnum5min = $_SESSION['lnum5min'];
              
              
            	$oout = lico_lang('general', 'user.online.footer.string');
            	$oout = str_replace("#num14days#", number_format($num14days)." (".number_format($lnum14days).")", $oout);
            	$oout = str_replace("#num24hours#", number_format($num24hours)." (".number_format($lnum24hours).")", $oout);
            	$oout = str_replace("#num60minutes#", number_format($num60min)." (".number_format($lnum60min).")", $oout);
            	$oout = str_replace("#num5min#", number_format($num5min)." (".number_format($lnum5min).")", $oout);
            	
            	$ou = file_get_contents($lico['abspath']."/_uo.log");
            	$ou = trim($ou);
            	$tmp1 = explode("\n", $ou);
            	$uo = trim($tmp1[0]);
              $ro = trim($tmp1[1]);
              
              $tmp2 = explode(" ", $uo);
            	$uo_num = intval($tmp2[0]);
            	$uo_time = intval($tmp2[1]);
            	
              $tmp3 = explode(" ", $ro);
            	$ro_num = intval($tmp3[0]);
            	$ro_time = intval($tmp3[1]);
            	
            	$update = 0;
            	if ($num5min > $uo_num) {
         	      $uo = $num5min." ".time();
              	$uo_num = $num5min;
              	$uo_time = time();
         	      $update = 1;
      	      }
            	if ($lnum5min > $ro_num) {
         	      $ro = $lnum5min." ".time();
              	$ro_num = $lnum5min;
              	$ro_time = time();
         	      $update = 1;
      	      }
            	if ($update >= 1) {
            	  @unlink($lico['abspath']."/_uo.log");
         	      $fp = fopen($lico['abspath']."/_uo.log", "w");
         	      fwrite($fp, $uo."\n".$ro);
         	      fclose($fp);
         	      chmod($lico['abspath']."/_uo.log", "w+", 0777);
      	      }
            	$oout = str_replace("#uorecordnum#",  number_format($uo_num), $oout);
            	$oout = str_replace("#uorecordtime#", lico_getdatetime($uo_time), $oout);
            	$oout = str_replace("#rorecordnum#",  number_format($ro_num), $oout);
            	$oout = str_replace("#rorecordtime#", lico_getdatetime($ro_time), $oout);
            	
            	echo $oout;
            	?>
            </div>
      
      
            <div id="copyright">
       		      <a href="http://trac.linuxcounter.net/">Wiki</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/changelog.html">ChangeLog</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/impressum.html">Impressum</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/disclaimer.html">Disclaimer</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/privacy.html">Privacy Policy</a><br/>
            		<a href="<?php echo $lico['baseurl']; ?>/intention.html">Our Intention</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/info.html">Project Info</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/copyright.html">Copyright notice</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/about.html">About us</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/team.html">The team</a> &middot; 
            		<a href="<?php echo $lico['baseurl']; ?>/contact.html">Contact us</a>
      				<br/><br/>
      				<?php echo $lico['title']; ?> <?php echo $lico['version']; ?><br/>
              LiCo, LinuxCounter.net, <?php echo $lico['title']; ?> Copyright &copy; <?php echo $copyrightdate; ?> by Alexander L&ouml;hner. All rights reserved.<br/>
              Original project counter.li.org &copy; 1993 - 2011 by Harald Tveit Alvestrand &amp; the Linux Counter Project<br/>
              Linux is a registered trademark of Linus Torvalds.
      			</div>
   </div>
<?php

///////////////////////////////////////////////////////////////////////////////

$db->close();
?>
	</body>
</html>